/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.media.entity;

import com.thinkgem.jeesite.modules.hk.sys.entity.adv.HkCategory;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 自媒体系统推荐分类Entity
 * @author 罗天文
 * @version 2018-05-24
 */
public class HkMediaSystemCategory extends DataEntity<HkMediaSystemCategory> {
	
	private static final long serialVersionUID = 1L;
	private HkCategory category;		// 分类
	private String imgRank;		// 序号
	private String type;		// 类型
	private String imgSrc;		// 图片地址
	
	public HkMediaSystemCategory() {
		super();
	}

	public HkMediaSystemCategory(String id){
		super(id);
	}

	public HkCategory getCategory() {
		return category;
	}

	public void setCategory(HkCategory category) {
		this.category = category;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getImgRank() {
		return imgRank;
	}

	public void setImgRank(String imgRank) {
		this.imgRank = imgRank;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=200, message="图片地址长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
}